package com.example.manager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.dto.system.AssginMenuDto;
import com.example.model.dto.system.AssginRoleDto;
import com.example.model.dto.system.SysRoleDto;
import com.example.model.entity.system.SysRole;

import java.util.List;
import java.util.Map;

public interface SysRoleService extends IService<SysRole> {

    Page<SysRole> findByPage(SysRoleDto sysRoleDto);

    void assigningRoles(AssginRoleDto assginRoleDto);

    Map<String, Object> allRoles(Long userId);

    List<Long> findMenuIdsByRoleId(Long roleId);

    void assigningMenus(AssginMenuDto assginMenuDto);
}
